<div class="PaperShelf-form">
  <%= error_messages_for 'paper' %>
  <fieldset>
     <% form_for :paper do |form| %>
       
    <legend>Paper Information</legend>
      <p>
        <label for="title">*Title:</label>
        <%= form.text_field :title, :size => 40 %>
      </p>

      <p>
        <label for="author">Author:</label>
        <%= form.text_field :author, :size => 40 %>
      </p>

      <p>
        <label for="publisher">Publisher:</label>
        <%= form.text_field :publisher, :size => 40 %>
        </p>
        <p>
        <label for="paper_category_id">Category:</label>
        <%= select ("paper", "paper_category_id",PaperCategory.find(:all).collect {|p| [ p.catagory, p.id ] }, { :selected =>@paper.paper_category_id  })%>
      </p>

      <p>
        <label for="ISBN">ISBN:</label>
        <%= form.text_field :ISBN, :size => 40 %>
        </p>
         <p>
         <label for="page_info">Page:</label>
        <%= form.text_field :page_info, :size => 40 %>
      </p>
      <p>
        <label for="keyword1">Keyword:</label>
        <%= form.text_field :keyword1, :size => 40 %>
        </p>
         <p>
         <label for="keyword2">Keyword:</label>
        <%= form.text_field  :keyword2, :size => 40 %>
        </p>
         <p>
        <label for="keyword3">Keyword:</label>
        <%= form.text_field  :keyword3, :size => 40 %>
      </p>

      <p>
        <label for="download_url">Download URL:</label>
        <%= form.text_field :download_url, :size => 40 %>
      </p>
        <p>
        <label for="abstract">Abstract:</label><br/>
        <%= form.text_area :abstract ,:rows=>15 ,:cols=>40 %>
      </p>


      <%= submit_tag "Amend", :class => "submit" %>
       <% end %>  
     </fieldset>
</div>
